package com.alexrnl.BetaSeriesFileManager.API.entities;

import java.util.SortedSet;
import java.util.logging.Logger;

/**
 * Class representing a season.
 * @author Alex
 */
public class Season implements Comparable<Season> {
	private static Logger	T	= Logger.getLogger(Season.class.getName());

	private Integer number;
	private SortedSet<Episode> episodes;


	/**
	 * @return the number
	 */
	public Integer getNumber () {
		return number;
	}

	/**
	 * @param number the number to set
	 */
	public void setNumber (final Integer number) {
		this.number = number;
	}


	@Override
	public int compareTo (final Season o) {
		if (o == null)
			throw new NullPointerException("Cannot compare with null season.");
		return number.compareTo(o.getNumber());
	}

}
